package cn.itsource.ymcc.dto;

import cn.itsource.ymcc.domain.*;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;
@Data
public class CourseDto {
    @Valid
    private Course course;
    @Valid
    private CourseDetail courseDetail;
    @Valid
    private CourseMarket courseMarket;
    @Valid
    private CourseResource courseResource;
    @NotEmpty(message = "没有讲师")
    private List<Long> teacharIds;
}
